package top.saodisheng.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * description:
 *
 * @author 扫地生_saodisheng
 * @date 2021/10/10
 */
public class HelloWorldFilter implements Filter {
	@Override
	public void init(FilterConfig filterConfig) throws ServletException {

	}

	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
		System.out.println("触发了 Hello World 过滤器...");
		filterChain.doFilter(servletRequest, servletResponse);
	}

	@Override
	public void destroy() {

	}
}
